﻿<Window x:Class="Hockey.UILayer.Forms.EnterPlayerNameForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"                                                                                        
        Title="{loc:Translate Default='Nové jméno hráče'}" WindowStyle="ToolWindow" ShowInTaskbar="False" SizeToContent="WidthAndHeight" ResizeMode="NoResize"
        xmlns:service="clr-namespace:MVVMDialogs;assembly=MVVMDialog"              
        service:DialogService.IsRegisteredView="True"     
        WindowStartupLocation="CenterOwner"
        Background="{DynamicResource WindowBackgroundBrush}" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Label Grid.Row="0" Content="{loc:Translate Default='Zadejte nové jméno hráče:'}" Margin="5" />

        <TextBox x:Name="uxTextBox" Grid.Row="1" Width="300" Margin="5,0,5,5" MaxLength="20" Text="{Binding Path=PlayerName, UpdateSourceTrigger=PropertyChanged}" />
        
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2" Margin="8">
            <Button Content="{loc:Translate Default='OK'}"  Margin="5" Width="100" Command="{Binding Path=OKCommand}" IsDefault="True" />
            <Button Content="{loc:Translate Default='Storno'}" Margin="5" Width="100" Command="{Binding Path=CancelCommand}" IsCancel="True" />
        </StackPanel>                  
    </Grid>
</Window>
